package org.basic.sms.domain.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.util.Map;

@Data
public class MessageSendDTO {



    @NotNull(message = "模板不能为空")
    private Long templateId;


    private Map<String,String> extraParam;

    @NotNull(message = "手机号不为空")
    @Pattern(regexp = "^1([3-9])\\d{9}$", message = "Invalid mobile number")
    private String phone;


}
